#define _CRT_SECURE_NO_WARNINGS 1#include <stdio.h>
#include<string.h>
#include<stdio.h>
int isexit(char arr[], char x)
{
    int i = 0;
    while (arr[i]) {
        if (arr[i] == x)
            return 1;
        i++;
    }
    return 0;
}
int main() {
    char arr1[100] = { 0 };
    char arr2[100] = { 0 };
    scanf("%[^\n]s", arr1);
    getchar();
    scanf("%[^\n]s", arr2);

    int len = strlen(arr1);
    int i = 0;
    while (arr1[i])
    {
        if (strchr(arr2, arr1[i]) == NULL)
        {
            printf("%c", arr1[i]);
        }
        // if(isexit(arr2,arr1[i])==0){
          //   printf("%c",arr1[i]);
         //}
        i++;
    }
    return 0;
}